package client_package;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class Vue extends JFrame {
	private static final long serialVersionUID = 1L;
	
	
	private Controleur controleur;
	
	public Vue(Controleur c) {
		setControleur(c);
		
		this.addWindowListener (new WindowAdapter() {
			public void windowClosing (WindowEvent e) {
				getControleur().quitter();
			}
		});
	}
	
	protected void setControleur(Controleur c) {
		controleur = c;
	}
	
	protected Controleur getControleur() {
		return controleur;
	}
}
